package com.xzq.erp.domain.query;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xzq.erp.enums.CustomerGrade;
import com.xzq.erp.enums.CustomerType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "客户分页请求参数")
@Accessors(chain = true)
public class CustomerPageQuery extends BasePageQuery {

    @Schema(description = "客户名称", example = "张三")
    private String customerName;

    @Schema(description = "联系电话", example = "13800138000")
    private String phone;

    @Schema(description = "客户类型: 1-个人, 2-企业, 3-政府, 4-其他", example = "1")
    private Integer customerType;

    @Schema(description = "客户等级: 1-普通, 2-银牌, 3-金牌, 4-钻石", example = "1")
    private Integer grade;

}


